<%--
    Document   : menu
    Created on : 2 avr. 2010, 14:29:06
    Author     : SaLaH
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>CinéShop</title>
    </head>
    <body>
        <div class="sidebar1">


                        <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                          <a href="ServletFilms?genreId=-1">Tous les films</a>
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div><form method="get"  action="ServletFilms">
                                        <input type="text" value="" name="titre" id="s" style="width: 95%;" />
                                        <input type="hidden" name="action" value="chercherParTitre"/>
                                        <button class="Button" type="submit" name="rechercher">
                                                <span class="btn">
                                                    <span class="t">Rechercher</span>
                                                    <span class="r"><span></span></span>
                                                    <span class="l"></span>
                                                </span>
                                        </button>
                                        </form></div>
                                    </div>
                                </div>
                            </div>
                        </div>
  <c:if test="${utilisateur.admin == true}">
                         <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Admin CLIENTS
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
           <ul>
               <li> <strong><a href="ServletUsers?action=inscription" title="Ajouter un client Cin&eacute;Shop">Ajouter Client</a></strong></li>
               <br>
               <li> <strong><a href="ServletUsers?action=afficherUtilisateurs" title="Liste des clients de CinéShop">Les clients</a></strong></li>
             </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>


            <%-- debut admin rubriques --%>
             <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Admin RUBRIQUES
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

                    <li><strong><a href="ServletFormulaires?action=ajouterRubrique" title="Ajouter une rubrique">Ajouter rubrique</a></strong></li>
                    <br>
                    <li><strong><a href="ServletFormulaires?action=afficherRubriques" title="Afficher les rubriques">Les rubriques</a></strong></li>

                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>

            <%-- fin admin Rubriques --%>
            <%-- début admin Films --%>
            <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Admin FILMS
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

                    <li><strong><a href="NewFilmServlet" title="Ajouter un film au catalogue">Ajouter Film</a></strong></li>
                    <br>
                    <%--  <li><strong><a href="NewFilmServlet&action=modifier" title="Modifier un film du catalogue">Modifier les Film</a></strong></li>
                    --%>
                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>
            <%-- Fin admin Films --%>
            <%-- Début admin Acteurs --%>
             <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Admin ACTEURS
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

                    <li><strong><a href="ServletFormulaires?action=ajouterActeur" title="Ajouter un acteur">Ajouter acteur</a></strong></li>
                    <br>
                    <li><strong><a href="ServletFormulaires?action=TousLesActeurs" title="Les acteurs">Les acteurs</a></strong></li>

                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>
             <%-- Fin admin acteurs --%>
            <%-- debut admin réalisateurs --%>
 <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                            Admin R&Eacute;ALISATEURS
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

                <li><strong><a href="ServletFormulaires?action=ajouterRealisateur" title="Ajouter un r&eacute;alisateur">Ajouter r&eacute;alisateur</a></strong></li>
                <br>
                <li><strong><a href="ServletFormulaires?action=afficherRealisateurs" title="Afficher les r&e&eacute;alisateur genre">Les r&eacute;alisateurs</a></strong></li>

                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>
            <%-- fin admin réalisateurs --%>

            <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Admin GENRES
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

                               <li><strong><a href="ServletFormulaires?action=ajouterGenre" title="Ajouter un genre">Ajouter genre</a></strong></li>
                               <br>
                               <li><strong><a href="ServletFormulaires?action=afficherGenres" title="Afficher un genre">Les genres</a></strong></li>

                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>


 <%-- debut block--%>
  </c:if>
                     <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                           Films par GENRES
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>

            <c:forEach var="genre" items="${listeDesGenres}">
                <li><strong><a href="ServletFilms?genreId=${genre.id}">${genre.nom}</a></strong></li>
                </c:forEach>
                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>
 <%-- fin block --%>


                     <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                            Films par RUBRIQUES
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
            <ul>


            <c:forEach var="rubrique" items="${listeDesRubriques}">
                <li><strong><a href="ServletFilms?rubriqueId=${rubrique.id}">${rubrique.nom}</a></strong></li>
                </c:forEach>
                <br/>
            </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

              </div>
               </div>

    </body>
</html>
